import React from 'react';
import { connect } from 'dva';
import { Icon,Modal } from 'antd-mobile';
import { routerRedux } from 'dva/router';
import styles from './partTimeList.css';
import CustList from '../../../../../common/lists/CustomList';
import defaultImage from '../../../../../assets/avatar.jpg';
import resetIcon from '../../../../../icons/partTime/reset-icon.png';

const alert = Modal.alert;

const PartTime = ({
  loading,
  list,
  onViewMember=()=>{},
  onPagination=()=>{},
}) => {
  // console.log('兼职列表', JSON.stringify(list));

  const partTimeListProps = {
    loading,
    list,
    onViewMember,
    onPagination,
    showLimit(id){
      onViewMember(id);
    }
  }

  const MarginBottom = () => <div style={{height: '3em', backgroundColor:'#F5F5F9'}}></div>;

  return (
    <div style={{marginBottom:'3em'}}>
      <div className={styles.partTimeListTitle}>
        <div className={styles.titleContent}>
          <span>你可能感兴趣</span>
          {/* <img src={resetIcon}/> */}
        </div>
      </div>
      <CustList {...partTimeListProps}/>
    </div>
  )
}

PartTime.propTypes = {
};
export default connect()(PartTime);
